package com.gtxc.kotlinmvvm.ui.activity;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;

import com.drake.statusbar.StatusBarKt;
import com.gtxc.kotlinmvvm.BR;
import com.aleyn.mvvm.base.BaseActivity;

import com.gtxc.kotlinmvvm.R;
import com.gtxc.kotlinmvvm.databinding.ActivityNodeBinding;
import com.gtxc.kotlinmvvm.viewmodle.NodeViewModle;

import org.jetbrains.annotations.Nullable;

/**
 * FileName:NodeActivity
 * Author：Administrator
 * Date:2021 2021/9/28 16:24
 * Copyright (C), 2020-2021,成都拇音科技有限公司
 * <p>
 * <p>
 * Description: zwl
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */
//节点
public class NodeActivity extends BaseActivity<NodeViewModle, ActivityNodeBinding> {
    //回调接口
    public interface ItemOnClickInterface {
        void onItemClick(int p);
    }
    public static ItemOnClickInterface itemOnClickInterfaces;
    //定义回调方法
    public static void setItemOnClickInterface(ItemOnClickInterface itemOnClickInterface) {
        itemOnClickInterfaces = itemOnClickInterface;
    }
    @Override
    public int layoutId() {
        return R.layout.activity_node;
    }
    @Override
    public int variableID() {
        return BR.NodeViewModle;
    }
    @SuppressLint("UseCompatLoadingForDrawables")
    @Override
    public void initView(@Nullable Bundle savedInstanceState) {
        StatusBarKt.immersive(this, getResources().getColor(R.color.colorbufn), true);
        getMBinding().toolbar.setTitleBackgroundColor(Color.WHITE);
        getMBinding().toolbar.setLeftBackgroundColor(R.mipmap.left_back);
        getMBinding().toolbar.setOnLeftClickListener(v -> finish());


    }

    @Override
    public void initData() {

    }

    @Override
    public void initCLick() {

    }



    @Override
    public void bindViewModel() {

    }
}
